<div class="wide form">
    <?php echo $note; ?>
    <?php $form = $this->beginWidget('ActiveForm', $formConfig); ?>

    <div class="row">
        <?php echo $form->label($user, 'id_'); ?>
        <?php echo $form->textField($user, 'id_'); ?>
    </div>

    <div class="row">
        <?php echo $form->label($user, 'username_'); ?>
        <?php echo $form->textField($user, 'username_', array('size' => 20, 'maxlength' => 20)); ?>
    </div>

    <div class="row">
        <?php echo $form->label($user, 'firstName_'); ?>
        <?php echo $form->textField($user, 'firstName_', array('size' => 60, 'maxlength' => 200)); ?>
    </div>

    <div class="row">
        <?php echo $form->label($user, 'lastName_'); ?>
        <?php echo $form->textField($user, 'lastName_', array('size' => 60, 'maxlength' => 200)); ?>
    </div>

    <div class="row">
        <?php echo $form->label($user, 'userRole_'); ?>
        <?php echo $form->dropDownList($user, 'userRole_', $user->userRoleOption, array('empty' => '')); ?>
    </div>

    <div class="row">
        <?php echo $form->label($user, 'gender_'); ?>
        <?php echo $form->dropDownList($user, 'gender_', $user->genderOption, array('empty' => '')); ?>
    </div>

    <div class="row">
        <?php echo $form->label($user, 'dob_'); ?>
        <?php $form->dateSelector($user,'dob_'); ?>
    </div>

    <div class="row">
        <?php echo $form->label($user, 'ethnic_'); ?>
        <?php echo $form->dropDownList($user, 'ethnic_', $user->ethnicOption, array('empty' => '')); ?>
    </div>

    <div class="row">
        <?php echo $form->label($user, 'maritalStatus_'); ?>
        <?php echo $form->dropDownList($user, 'maritalStatus_', $user->maritalStatusOption, array('empty' => '')); ?>
    </div>

    <div class="row">
        <?php echo $form->label($user, 'phoneNumber_'); ?>
        <?php echo $form->textField($user, 'phoneNumber_', array('size' => 25, 'maxlength' => 25)); ?>
    </div>

    <div class="row">
        <?php echo $form->label($user, 'faxNumber_'); ?>
        <?php echo $form->textField($user, 'faxNumber_', array('size' => 25, 'maxlength' => 25)); ?>
    </div>

    <div class="row">
        <?php echo $form->label($user, 'mobileNumber_'); ?>
        <?php echo $form->textField($user, 'mobileNumber_', array('size' => 25, 'maxlength' => 25)); ?>
    </div>

    <div class="row">
        <?php echo $form->label($user, 'email_'); ?>
        <?php echo $form->textField($user, 'email_', array('size' => 50, 'maxlength' => 50)); ?>
    </div>

    <div class="row">
        <?php echo $form->label($user, 'accountId_'); ?>
        <?php echo $form->dropDownList($user, 'accountId_', $user->accountOption, array('empty'=>'')); ?>
    </div>

    <div class="row">
        <?php echo $form->label($address, 'address_'); ?>
        <?php echo $form->textField($address, 'address_', array('rows' => 6, 'cols' => 50)); ?>
    </div>

    <div class="row">
        <?php echo $form->label($address, 'street_'); ?>
        <?php echo $form->textField($address, 'street_', array('rows' => 6, 'cols' => 50)); ?>
    </div>

    <div class="row">
        <?php echo $form->label($address, 'district_'); ?>
        <?php echo $form->textField($address, 'district_', array('rows' => 6, 'cols' => 50)); ?>
    </div>

    <div class="row">
        <?php echo $form->label($address, 'city_'); ?>
        <?php echo $form->textField($address, 'city_', array('size' => 60, 'maxlength' => 100)); ?>
    </div>

    <div class="row">
        <?php echo $form->label($address, 'province_'); ?>
        <?php echo $form->textField($address, 'province_', array('rows' => 6, 'cols' => 50)); ?>
    </div>

    <div class="row">
        <?php echo $form->label($address, 'locality_'); ?>
        <?php echo $form->textField($address, 'locality_', array('rows' => 6, 'cols' => 50)); ?>
    </div>

    <div class="row">
        <?php echo $form->label($address, 'postalCode_'); ?>
        <?php echo $form->textField($address, 'postalCode_', array('size' => 5, 'maxlength' => 5)); ?>
    </div>

    <div class="row">
        <?php echo $form->label($address, 'state_'); ?>
        <?php echo $form->textField($address, 'state_', array('size' => 45, 'maxlength' => 45)); ?>
    </div>

    <div class="row">
        <?php echo $form->label($address, 'country_'); ?>
        <?php echo $form->dropDownList($address, 'country_', $address->countryOption); ?>
    </div>


    <div class="row buttons">
        <?php echo CHtml::submitButton(Lang::t('advanced.search.btn.submit')); ?>
    </div>

    <?php $this->endWidget(); ?>

</div><!-- search-form -->